﻿@model Angel.Web.Models.EditRoleModels


@{
    ViewBag.Title = "Edit Project Role";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<html class="mozilla">
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta charset="utf-8">
    <style type="text/css">
          .errMsg {
                    text-align: left;
                  }   
    </style>
  

</head>
<body id="jira" class="aui-layout aui-theme-default page-type-admin ">
	<div id="page">
		<section id="content" role="main">
			<header>
				<h1 id="admin-page-heading">Roles</h1>
				<div id="upm-notifications" class="aui-dd-parent upm-admin-headers upm-notifications-jira dd-allocated loaded"><a title="Plugin Notifications" id="upm-notifications-trigger" class="aui-dd-trigger" href="#"><span id="upm-notifications-icon"></span></a><div id="upm-notifications-dropdown" class="upm-notifications-dropdown aui-dropdown hidden"></div></div></header>
					<div class="content-container">
						<div class="content-body aui-panel">
							<form action="EditProjectRole.jspa" method="post" name="jiraform" onsubmit="if (this.submitted) return false; this.submitted = true; return true">
								<table class="jiraform maxWidth">
									<tbody>
										<tr class="titlerow">
											<td colspan="2" class="jiraformheader">
												<a class="help-lnk" href="https://docs.atlassian.com/jira/docs-050/Managing+Project+Roles#Editing+a+project+role" target="_jirahelp">
												<img src="../Content/images/ico_helps.png" align="right" border="0" height="16" width="16"></a>
												<h3 class="formtitle">Edit Project Role: </h3>
											</td>
										</tr>
                                        
										<tr class="hidden"><td colspan="3"></td></tr>
                                        <tr>
                                        <td class="fieldLabelArea"></td>
                                        <td class="errMsg"><b style="color: Red">@ViewBag.NameErr</b></td>   
                                        </tr>
                                        <tr>
                                        <td class="fieldLabelArea"></td>
                                        <td class="errMsg"><b style="color: Red">@ViewBag.nameNull</b></td>    
                                        </tr>
										<tr>
                                             @Html.HiddenFor(model => model.Id)
											<td class="fieldLabelArea"> Name </td>
											<td >
                                                @Html.TextBoxFor(model=>model.Name)
											</td>                           
										</tr>
                                      
										<tr>
											<td class="fieldLabelArea">Description</td>
											<td class="fieldValueArea">
                                                @Html.TextBoxFor(model => model.Description, new {style="width : 300px;"})
											</td>
										</tr>
										<tr class="hidden">
											<td>
												<input id="id" name="id" value="10202" type="hidden">
											</td>
										</tr>
										<tr class="buttons-container">
											<td class="jiraformfooter">&nbsp;</td>
											<td colspan="1">
												<div class="buttons-container">
													<div class="buttons">
														<input name="Update" value="Update" id="update_submit" accesskey="s" title="Press Alt+Shift+s to submit form" class="aui-button " type="submit">

														@Html.ActionLink("Cancel", "Index")
													
													</div>
												</div>
											</td>
										</tr>
									</tbody>
								</table>
								<input id="atl_token" name="atl_token" value="" type="hidden">
							</form>
							<script language="javascript" type="text/javascript">
							    jQuery(function () {
							        AJS.$("form[name='jiraform'] :input:visible:first").focus();
							    });
							</script>
						</div>
					</div>
		</section> 
	</div>
	<div style="display: none;" id="atlwdg-blanket" class="atlwdg-blanket"></div><div class="atlwdg-popup atlwdg-box-shadow atlwdg-hidden" id="atlwdg-container"></div></body></html>